polynomial Interface

public interface polynomial

Module Procedures

private function poly_init_1(order) result(rst)

Initializes a new polynomial instance.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: order

The order of the polynomial (must be >= 0).

Return Value type(polynomial)

The new polynomial object.

private function poly_init_2(c) result(rst)

Initializes a new polynomial instance.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: c

The array of polynomial coefficients. The coefficients are established as follows: c(1) + c(2) * x + c(3) * x2 + ... c(n) * xn-1.

Return Value type(polynomial)

The new polynomial object.